In this step you will create a data source that you can later bind the C1TileControl to using the TileControl’s databinding properties.
Connect to a new data source
- Add the C1TileControl to your form.
- In the project toolbar, from the Data menu select Add New Data Source. The Data Source Configuration Wizard dialog box appears.
- Select Database and then click Next.
- Select Dataset and then click Next.
- Click New Connection.
- In the Add Connection dialog box, click Browse.
- In the Select Microsoft Access Database File dialog box locate the C1NWind.mdb (located by default in the C:\Users\UserName\Documents\ComponentOne Samples\Common), click Open, and click OK.
- Click the Next button to continue. A dialog box will appear aslking if you would like to add the data file to your project and modify the connection string. Since it is not necessary to copy the database to your project, click No.
- Verify the Yes, save the connection as check box is checked and click Next to continue.
- The connection string is saved as C1NWindConnectionString.
- In the Data Source Configuration Wizard select the Tables node.
- dSelect Finish.